package com.gitee.huanminabc.utils_tools.security.dal.redis;

import com.gitee.huanminabc.utils_tools.security.vo.LoginUserVo;
import org.redisson.client.RedisException;

public interface RedisSecurityService {

    //获取LoginUserDto
    LoginUserVo getLoginUserDto(String account) throws RedisException;

    //查询指定account的剩余时间
    long getAccountExpire(String account);

    //设置LoginUserDto
    void setLoginUserDto(LoginUserVo loginUserDto, long time);

    //删除LoginUserDto
    void deleteLoginUserDto(String account);


    //设置模拟token
    void setMockToken(String hash,String jwt, long time);

    //获取模拟token
    String getMockToken(String hash);
}
